#include <iostream>
using namespace std;


class Date
{
public:
	Date(int year, int month, int day) :
		_year(year),
		_month(month),
		_day(day)
	{
		cout<<"Date()" << endl;
	}
	bool operator==(const Date& x);
	bool operator!=(const Date& x);
	bool operator>(const Date& x);

private:
	int _year;
	int _month;
	int _day;
};

bool Date::operator==(const Date& x)
{
	return _year == x._year &&
		_month == x._month &&
		_day == x._day;
}

bool Date::operator!=(const Date& x)
{
	return !(*this == x);
}

bool  Date::operator>(const Date& x)
{
	if (_year > x._year)
		return true;
	else if (_year == x._year&&_month > x._month)
		return true;
	else if (_year == x._year && _month== x._month&& _day > x._day)
		return true;
	else
		return false;
}
